from rest_framework import viewsets
from .models import ProjectStatistic, ProjectFinance
from .serializers import ProjectStatisticSerializer, ProjectFinanceSerializer

class ProjectStatisticViewSet(viewsets.ModelViewSet):
    queryset = ProjectStatistic.objects.all()
    serializer_class = ProjectStatisticSerializer

class ProjectFinanceViewSet(viewsets.ModelViewSet):
    queryset = ProjectFinance.objects.all()
    serializer_class = ProjectFinanceSerializer 